Skip to content

ci(pr-ready): required check that fails unfinished PR bodies in PRs and merge groups [squash] - #17

Draft
congvc-bot-x99[bot] wants to merge 13 commits into
mainfrom
agent/x99-claude-sonnet-200k/che-3440-02b6d72d2bb6
Draft

congvc-bot-x99[bot] wants to merge 13 commits into
mainfrom
agent/x99-claude-sonnet-200k/che-3440-02b6d72d2bb6

Conversation

@congvc-bot-x99

@congvc-bot-x99 congvc-bot-x99 Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Status: Draft. Waiting for an independent review of this head. Enforcement is not active.

Three thin callers of the shared pr-ready reusable workflows in cheese-work/multica-dotfiles (PR #983), per the re-cut decision (CHE-3693, 22 Nov 2026) and the review finding "no reusable workflow" (CHE-3440). The earlier script copy in this repo is removed.

What changed

  • .github/workflows/pr-ready.yml (pull_request_target), pr-ready-queue.yml (merge_group), pr-ready-recheck.yml (issue_comment). Byte-identical to templates/pr-ready-callers/ in multica-dotfiles. One uses: ...@main job each; no steps, env or secrets.
  • Logic, both gates, trusted execution and merge-group coverage live in multica-dotfiles#983, with the tests.

Depends on: multica-dotfiles#983 merged, and the owner setting that lets this repo use multica-dotfiles workflows. Until then these callers fail at startup. Merge order: #983 first.

Not done / owner-only

  • No merge, enqueue, ruleset change. Enforcement is not active. Expected check name pr-ready / judge: UNVERIFIED until a live run.
  • @main pin to a merge commit is a follow-up.
  • NOT-RUN: live pr-ready run, live queue run.

Known failing check: ci-policy fails on base debt (8 workflows unclassified at main), not on this change. The doop owner decides: retarget or classify them.

Refs: CHE-3440, CHE-3434

@congvc-bot-x99

congvc-bot-x99 Bot commented Nov 4, 2026

Copy link
Copy Markdown
Author

Security-Gate-Verdict: FAIL
Reviewer: x99-codex-terra (gpt-6.1-terra)
Signed: x99-codex-terra, 2026-11-04 07:12 ICT
Repo: cheese-work/doop
PR: 17
Base: main
SHA: a585351
Findings:

@congvc-bot-x99

congvc-bot-x99 Bot commented Nov 4, 2026

Copy link
Copy Markdown
Author

Security-Gate-Verdict: FAIL
Reviewer: x99-codex-terra (gpt-6.1-terra)
Signed: x99-codex-terra, 2026-11-04 07:45 ICT
Repo: cheese-work/doop
PR: 17
Base: main
SHA: 6570286
Findings:

  • .github/workflows/pr-ready-queue.yml:15 executes the queued PR's workflow definition; a PR can alter the job to report pr-ready success without checking its body or signed verdict. The trusted required-workflow prerequisite remains unapplied.
  • .github/workflows/pr-ready.yml:17 does not trigger on verdict comment creation, edit, or deletion; a deleted or revoked PASS leaves an earlier successful check unchanged, and a newly posted PASS alone does not rerun a failed check.
  • .github/pr-ready/pr_ready.py:214 skips independent PASS validation on pull requests targeting non-default branches, allowing a body-ready PR to pass this check without the required review.
  • .github/pr-ready/pr_ready.py:140 trusts reviewer strings in comments from a shared bot; a bot user can claim invented-codex (unknown-model) as a cross-lab signer, and the parser accepts it without authenticating the reviewer.

@congvc-bot-x99

congvc-bot-x99 Bot commented Nov 4, 2026

Copy link
Copy Markdown
Author

Security-Gate-Verdict: FAIL
Reviewer: x99-codex-terra (gpt-6.1-terra)
Signed: x99-codex-terra, 2026-11-04 08:13 ICT
Repo: cheese-work/doop
PR: 17
Base: main
SHA: 03dc50d
Findings:

  • .github/pr-ready/pr_ready.py:303 skips rerunning an in-progress check. If that check already read a PASS and the PASS is deleted before it finishes, the check can finish green without a fresh evaluation.
  • .github/workflows/pr-ready-queue.yml:15 has no verdict-comment revocation path; deleting a PASS after the queue check succeeds leaves that queue result green.
  • .github/workflows/pr-ready-queue.yml:27 executes the queue commit's workflow; a PR can modify its own job to report success without the gate. A trusted required-workflow rule remains unapplied.
  • .github/pr-ready/pr_ready.py:60 uses claimed names from a shared bot rather than authenticated reviewer identity; a bot user can claim a registered cross-lab reviewer.

@congvc-bot-x99

congvc-bot-x99 Bot commented Nov 4, 2026

Copy link
Copy Markdown
Author

Security-Gate-Verdict: FAIL
Reviewer: x99-codex-terra (gpt-6.1-terra)
Signed: x99-codex-terra, 2026-11-04 08:46 ICT
Repo: cheese-work/doop
PR: 17
Base: main
SHA: c887d11
Findings:

  • .github/pr-ready/pr_ready.py:239 treats all tree API failures as absent directories. If both mode reads fail, both maps contain missing values and a mismatched queue revision can pass without mode verification.
  • .github/pr-ready/pr_ready.py:369 silently accepts a missing queue workflow run; timeout or API failure during recheck can also leave an earlier queue success intact after a PASS is revoked.
  • .github/workflows/pr-ready-queue.yml:27 executes the queue commit's workflow; a PR can modify its own job to report success without the gate. A trusted required-workflow rule remains unapplied.
  • .github/pr-ready/pr_ready.py:60 uses claimed names from a shared bot rather than authenticated reviewer identity; a bot user can claim a registered cross-lab reviewer.

@congvc-bot-x99

congvc-bot-x99 Bot commented Nov 4, 2026

Copy link
Copy Markdown
Author

Security-Gate-Verdict: FAIL
Reviewer: x99-codex-terra (gpt-6.1-terra)
Signed: x99-codex-terra, 2026-11-04 09:22 ICT
Repo: cheese-work/doop
PR: 17
Base: main
SHA: c1a9c6c
Findings:

  • .github/pr-ready/pr_ready.py:351 suppresses a rejected cancel and never retries it. A run holding a revoked PASS may finish green before the handler requests another run.
  • .github/pr-ready/pr_ready.py:343 reports a failed rerun of a completed check but cannot invalidate its prior success; a revoked PASS can leave a queue group mergeable. GitHub cancellation and rerun behavior remains unverified.
  • .github/workflows/pr-ready-queue.yml:27 executes the queue commit's workflow; a PR can modify its own job to report success without the gate. A trusted required-workflow rule remains unapplied.
  • .github/pr-ready/pr_ready.py:60 relies on claimed names in shared-bot comments rather than authenticated reviewer identity; a bot user can claim a registered cross-lab reviewer.

@congvc-bot-x99

congvc-bot-x99 Bot commented Nov 4, 2026

Copy link
Copy Markdown
Author

Security-Gate-Verdict: FAIL
Reviewer: x99-codex-terra (gpt-6.1-terra)
Signed: x99-codex-terra, 2026-11-04 09:54 ICT
Repo: cheese-work/doop
PR: 17
Base: main
SHA: f0a846f
Findings:

  • .github/pr-ready/pr_ready.py:438 dereferences a nullable queue head outside the per-entry handler. A null head aborts before processing the known PR target, leaving its earlier success unchanged after revocation.
  • .github/pr-ready/pr_ready.py:383 accepts an in-progress read of the same run_attempt as confirmation of a rerun; a stale read can leave a revoked verdict without a verified new attempt.
  • .github/workflows/pr-ready-queue.yml:27 executes the queue commit's workflow; a PR can modify its own job to report success without the gate. A trusted required-workflow rule remains unapplied.
  • .github/pr-ready/pr_ready.py:64 relies on claimed names in shared-bot comments rather than authenticated reviewer identity; a bot user can claim a registered cross-lab reviewer.

@congvc-bot-x99

congvc-bot-x99 Bot commented Nov 4, 2026

Copy link
Copy Markdown
Author

Security-Gate-Verdict: FAIL
Reviewer: x99-codex-terra (gpt-6.1-terra)
Signed: x99-codex-terra, 2026-11-04 10:25 ICT
Repo: cheese-work/doop
PR: 17
Base: main
SHA: fe093e9
Findings:

  • .github/pr-ready/pr_ready.py:406 waits up to ten seconds for each rerun confirmation before acting on later targets. Delayed confirmations leave later queue checks green; enough targets can exhaust the recheck timeout before they are invalidated.
  • .github/workflows/pr-ready-queue.yml:27 executes the queue commit's workflow; a PR can modify its own job to report success without the gate. A trusted required-workflow rule remains unapplied.
  • .github/pr-ready/pr_ready.py:64 relies on claimed names in shared-bot comments rather than authenticated reviewer identity; a bot user can claim a registered cross-lab reviewer.

@congvc-bot-x99

congvc-bot-x99 Bot commented Nov 4, 2026

Copy link
Copy Markdown
Author

Security-Gate-Verdict: FAIL
Reviewer: x99-codex-terra (gpt-6.1-terra)
Signed: x99-codex-terra, 2026-11-04 10:54 ICT
Repo: cheese-work/doop
PR: 17
Base: main
SHA: 4509504
Findings:

  • .github/workflows/pr-ready-queue.yml:27 executes the queue commit's workflow; a PR can modify its own job to report success without the gate. A trusted required-workflow rule remains unapplied.
  • .github/pr-ready/pr_ready.py:64 relies on claimed names in shared-bot comments rather than authenticated reviewer identity; a bot user can claim a registered cross-lab reviewer.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants